package com.kaifamiao.loginmodel.mapper;

import com.kaifamiao.loginmodel.entity.UserInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserInfoMapper {
    @Select("SELECT * FROM  userinfo")
    List<UserInfo> findAll();

    @Select("SELECT * FROM  userinfo WHERE username = #{username}")
    UserInfo getUserByName(String username);
}
